package ma.co.ba.BusinessApplications.model;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

@Entity
@DiscriminatorValue("Tache")
public class Activite extends Work {

	private static final long serialVersionUID = 1L;

	@ManyToOne(fetch = FetchType.EAGER)
	private Projet projet;

	@ManyToOne(fetch = FetchType.EAGER)
	private Prestation prestation;

	@ManyToOne(fetch = FetchType.EAGER)
	private Utilisateur consultant;

	@ManyToOne(fetch = FetchType.LAZY)
	private Utilisateur validator;

	public Activite() {

	}

	public Projet getProjet() {
		return projet;
	}

	public void setProjet(Projet projet) {
		this.projet = projet;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Prestation getPrestation() {
		return prestation;
	}

	public void setPrestation(Prestation prestation) {
		this.prestation = prestation;
	}

	public Utilisateur getConsultant() {
		return consultant;
	}

	public void setConsultant(Utilisateur consultant) {
		this.consultant = consultant;
	}

	public Utilisateur getValidator() {
		return validator;
	}

	public void setValidator(Utilisateur validator) {
		this.validator = validator;
	}

}
